package day8;

 class Instrument {
    public void makeSound(){
        System.out.println("弹奏乐器");
    }
}
//二胡
class Erhu extends Instrument{
    public void makeSound(){
        System.out.println("二胡");
    }
}
//钢琴
class Piano extends Instrument{
    public void makeSound(){
        System.out.println("钢琴");
    }
}
//小提琴
class Violin extends Instrument{
    public void makeSound(){
        System.out.println("小提琴");
    }
}